package brad.zimmerman.dungeon.game;

public class ClassGlyphActions {
	
	public int returnCost(int glyph, ClassGameStats player){
		//1"Blood",
		//2"Converter",
		//3"Empty",
		//4"EndWall",
		//5"Fireball",
		//6"FirstStrike",
        //7"Grumpkin",
        //8"Heal",
        //9"KillProtect",
        //10"Might",
        //11"Petrify",
        //12"Poison",
        //13"Reveal",
        //14"Summon",
        //15"TeleMonster",
        //16"ManaSpark"
		//17 Totem
		//18 Klondike
		//19 Nexus
		//20 Affinity
		switch(glyph){
			case 1:return 0;
			case 2:return 3;
			case 3:return 0;
			case 4:
				if (player.bulldozer){
					return 1;
				}
				else{
					return 10;
				}
			case 5:
				if(player.noAttackSpells){
					return 999;
				}else{
					return 6;
				}
			case 6:
				if (player.statusMaster){
					return 1;
				}
				else{
					return 3;
				}
			case 7:
					return 5;
			case 8:return 4;
			case 9:return 12;
			case 10:
				if (player.statusMaster){
					return 1;
				}
				else{
					return 3;
				}
			case 11:return 6;
			case 12:
				if (player.statusMaster){
					return 1;
				}
				else{
					return 6;
				}
			case 13:return 4;
			case 14:return 6;
			case 15:
				if(player.alienTeleport){
					return 6;
				}else{
					return 8;
				}
			case 16:
				if(player.noAttackSpells){
					return 999;
				}
				else{
					return 0;
				}
			case 17:
					return 10;
			case 18:
				if(player.noAttackSpells){
					return 999;
				}else{
					return 12;
				}
			case 19: 
				if(player.noAttackSpells){
					return 999;
				}
				else{
					return 11;
				}
			case 20:
				return 20;
			default:return 0;
		}
	}
	
	public int offenseSpells(int glyph) {
		//1: Attack only
		//0: Neutral
		//-1: Defense only
		switch(glyph){
			case 1:return 0;
			case 2:return 0;
			case 3:return 0;
			case 4:return 0;
			case 5:return 1;
			case 6:return 0;
			case 7:return -1;
			case 8:return 0;
			case 9:return 0;
			case 10:return 0;
			case 11:return 1;
			case 12:return 0;
			case 13:return 0;
			case 14:return 0;
			case 15:return 1;
			case 16:return 1;
			case 17:return -1;
			case 18:return 1;
			case 19:return 1;
			case 20:return -1;
			default:return 0;
		}   
    };
}
